﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for BigRoute
/// </summary>
public class BigRoute
{
    private List<SmallRoute> _routeList;
    public List<SmallRoute> RouteList
    {
        get { return _routeList; }
        set { _routeList = value; }
    }

    private DateTime _flightDate;
    public DateTime FlightDate
    {
        get { return _flightDate; }
        set { _flightDate = value; }
    }

	public BigRoute()
	{
        _routeList = new List<SmallRoute>();
        _flightDate = DateTime.Now;
	}
}

public class SmallRoute
{
    private int _routeID;
    public int RouteID
    {
        get { return _routeID; }
        set { _routeID = value; }
    }

    private Location _origin, _destination;
    public Location Destination
    {
        get { return _destination; }
        set { _destination = value; }
    }
    public Location Origin
    {
        get { return _origin; }
        set { _origin = value; }
    }

    private double _flyHour;
    public double FlyHour
    {
        get { return _flyHour; }
        set { _flyHour = value; }
    } 

    public SmallRoute()
    {
        _routeID = 0;
        _flyHour = 0;
        _origin = new Location();
        _destination = new Location();
    }
}
